package middleware

import (
	"gorm.io/gorm"
	"trusteva/common/jwtx"
)

type JwtAuthMiddleware struct {
	*jwtx.JwtAuthMiddleware
}

func NewJwtAuthMiddleware(db *gorm.DB, accessSecret string, accessExpire int64) *JwtAuthMiddleware {
	return &JwtAuthMiddleware{
		jwtx.NewJwtAuthMiddleware(db, accessSecret, accessExpire),
	}
}
